package com.example.shiro.permission.service.impl;

import com.example.shiro.permission.entity.Permission;
import com.example.shiro.permission.dao.PermissionDao;
import com.example.shiro.permission.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.shiro.role.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 资源表 服务实现类
 * </p>
 *
 * @author linyb
 * @since 2021-02-10
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionDao, Permission> implements PermissionService {

    @Autowired
    private PermissionDao permissionDao;

    @Override
    public List<Permission> findPermissionByRole(Role role) {
        return permissionDao.findPermissionByRole(role);
    }
}
